package cn.com.cfae.iras.doc.analyze.parse.model;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 对外担保
 */
public class DWDBModel extends BizBaseModel {

    public static String MODEL_NAME = "DWDB";

    /**
     * 对外担保金额
     */
    private static String DWDBJE = "DWDBJE";


    private static Map<String, String> items = new HashMap<>();

    static {
        items.put(DWDBJE, "在保责任余额|对外担保|对外担保金额|对外担保余额|担保余额");
    }

    public static List<ExtractItem> createExtractItemList() {
        List<ExtractItem> extractItemList = new ArrayList<>();
        items.forEach((key, value) -> {
            ExtractItem extractItem = new ExtractItem();
            extractItem.setItemName(key);
            extractItem.setSynonyms(value.split(SYNONYM_SPLIT_CHAR));
            extractItemList.add(extractItem);
        });
        return extractItemList;
    }

}
